package com.scenic.common.service;

import com.scenic.common.exception.ScenicSpotException;
import com.scenic.common.bean.Category;

public interface CategoryService {
    //添加
    boolean insert(Category category) throws ScenicSpotException;
    //删除
    boolean delete(Integer id) throws ScenicSpotException;
    //修改
    boolean update(Category category) throws ScenicSpotException;
    //条件搜索
    Object selectByCondition(Category category, Integer pageNum, Integer pageSize);
    //根据id查询
    Category selectById(Integer  id);
}
